package com.ruoyi.system.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.system.domain.BaseArea;
import com.ruoyi.system.domain.BaseAttendanceLog;

import java.util.List;

/**
 * 省市区
 * 
 */
public interface BaseAreasMapper extends BaseMapper<BaseArea> {
    /**
     * 获取省份下拉框
     */
    default List<BaseArea> provinceList(){
        LambdaQueryWrapper<BaseArea> wrapper = new LambdaQueryWrapper<>();
        wrapper.eq(BaseArea::getLevelType,1);
        return selectList(wrapper);
    }
}
